#ifndef PICBUTTON_H
#define PICBUTTON_H

#include<QPushButton>
#include<QPixmap>
#include<QEvent>

class PicButton : public QPushButton
{
public:
    explicit PicButton(QWidget *parent = Q_NULLPTR);
    void setIcons(const QString& normal, const QString& hover, const QString& pressed);
protected:
    bool event(QEvent *e) override;
private:
    void setNormalIcon();
    void setHoverIcon();
    void setPressedIcon();
    QString _normal;
    QString _hover;
    QString _pressed;
};

#endif // PICBUTTON_H
